﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGQ.Model;

namespace SGQ.XML
{
    class XMLWrite
    {
        
        public static void WriteXML(List<Material> obj)
        {
            System.Xml.Serialization.XmlSerializer writer =
                new System.Xml.Serialization.XmlSerializer(typeof(List<Material>));

            System.IO.StreamWriter file = new System.IO.StreamWriter(
                @"C:\Users\Afonso\Projetos\SGQ\SerializationOverview.xml");
            writer.Serialize(file, obj);
            file.Close();
        }
    }
}
